using UnityEngine; namespace eWolf.CodeExamples.ProceduralGeneration { public class UVSet { /// /// The Bottom left position /// public Vector2 BL; /// /// The bottom right postion /// public Vector2 BR; /// /// The top left position /// public Vector2 TL; /// /// The top right position /// public Vector2 TR; /// /// The Standard constructor /// /// The top left UV /// The top right UV /// The bottom left uv /// The bottom right uv public UVSet(Vector2 topLeft, Vector2 topRight, Vector2 botLeft, Vector3 botRight) { TL = topLeft; TR = topRight; BL = botLeft; BR = botRight; } /// /// The Standard constructor /// public UVSet() { } /// /// The Standard constructor /// /// The X position /// The Y position public UVSet(float x, float y) { TL = new Vector2(0, 0); TR = new Vector2(0, y); BL = new Vector2(x, 0); BR = new Vector2(x, y); } } }